package com.livesource.client.model.entry;

import java.util.Date;

/**
 * 
 * @Entity
 */
public class ProjectFile {

	private String filePath;

	private String fileName;

	private String fileExtension;

	private Date dateModified;

	private String author;

	private String fileContent;

	private String sha;

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileExtension() {
		return fileExtension;
	}

	public void setFileExtension(String fileExtension) {
		this.fileExtension = fileExtension;
	}

	public Date getDateModified() {
		return dateModified;
	}

	public void setDateModified(Date dateModified) {
		this.dateModified = dateModified;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getFileContent() {
		return fileContent;
	}

	public void setFileContent(String fileContent) {
		this.fileContent = fileContent;
	}

	@Override
	public String toString() {

		String filePath = this.fileName;

		if (this.filePath != null && this.filePath.length() > 0) {

			filePath = this.filePath + "/" + this.fileName;

		}

		return filePath;
	}

	public void setSha(String sha) {
		this.sha = sha;
	}

	public String getSha() {
		return sha;
	}
}
